package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Commodity;
import cn.wolfcode.trip.base.query.CommodityQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ICommodityService {
    /**
     * 分页
     * @param qo
     * @return
     */
    PageInfo query(CommodityQueryObject qo);

    /**
     * 新增和编辑
     * @param commodity
     */
    void saveOrUpdate(Commodity commodity);

}
